package com.okq.entity;

import com.okq.entity.base.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 描述 : 公司表
 * 作者 : zdl
 * 日期 : 2017/6/27 16:53
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_company")
public class Company extends DataEntity implements Serializable {

    private static final long serialVersionUID = -3329494528628141659L;
    /**
     * 公司名称
     */
    @Column(name = "name", length = 100)
    private String name;
    /**
     * 公司地址
     */
    @Column(name = "address", length = 200)
    private String address;
    /**
     * 联系人
     */
    @Column(name = "contacts", length = 40)
    private String contacts;
    /**
     * 联系手机
     */
    @Column(name = "cellphone", length = 15)
    private String cellphone;
    /**
     * 联系电话
     */
    @Column(name = "telephone", length = 15)
    private String telephone;
    /**
     * 传真
     */
    @Column(name = "fax", length = 15)
    private String fax;
    /**
     * 邮箱
     */
    @Column(name = "email", length = 40)
    private String email;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
